import request from '@/utils/request'

// 获取监测量类型列表
export function getMonitoringQuantityTypeList(params) {
  return request({
    url: '/iot/web/iotMonitoringQuantityType/list',
    method: 'get',
    params
  })
}

// 获取监测量类型下拉列表
export function getMonitoringTypeList() {
  return request({
    url: '/iot/web/iotMonitoringQuantityType/monitoringTypeList',
    method: 'get'
  })
}

// 获取监测量类型详细信息
export function getMonitoringQuantityTypeDetail(monitoringQuantityTypeId) {
  return request({
    url: `/iot/web/iotMonitoringQuantityType/${monitoringQuantityTypeId}`,
    method: 'get'
  })
}

// 新增监测量类型
export function addMonitoringQuantityType(data) {
  return request({
    url: '/iot/web/iotMonitoringQuantityType',
    method: 'post',
    data
  })
}

// 修改监测量类型
export function updateMonitoringQuantityType(data) {
  return request({
    url: '/iot/web/iotMonitoringQuantityType',
    method: 'put',
    data
  })
}

// 删除监测量类型
export function deleteMonitoringQuantityType(monitoringQuantityTypeIds) {
  return request({
    url: `/iot/web/iotMonitoringQuantityType/${monitoringQuantityTypeIds}`,
    method: 'delete'
  })
}